package com.sinodata.bsm.center.dao;

import com.sinodata.bsm.center.bean.Condition;
import com.sinodata.bsm.center.bean.Page;
import com.sinodata.bsm.common.vo.ProtocolParameter;

/**
 * <p>
 * Description: 采集协议配置数据DAO接口类
 * </p>
 *
 * @author liulibo
 * @version 1.0

 * <p>
 * History: 
 *
 * Date                     Author         Version     Description
 * ---------------------------------------------------------------------------------
 * 2012-5-3 PM 2:35:44      liulibo        1.0         To create
 * </p>
 *
 * @since 
 * @see     
 */
public interface ProtocolParameterDao {

    /**
     * 分页查询采集协议配置数据
     * 
     * @param page
     * @param condition
     * @return
     */
    public Page<ProtocolParameter> findByPage(Page<ProtocolParameter> page, Condition condition);

    /**
     * 批量删除
     * 
     * @param ids
     */
    public void batchDelete(Long[] ids);

    /**
     * 根据模糊条件查询总数
     *  
     * @param condition
     * @return
     */
    public int getTotal(Condition condition);

    //根据条件精确查询总数
    public int getCountByCondtion(Condition condition);
}
